package com.xw.unification.interceptor;

import com.xw.unification.enums.UnifiedRequestInterceptorStep;
import lombok.Getter;

@Getter
public class UnifiedRequestInterceptorChainNodeContext {
    private int index;
    private UnifiedRequestInterceptor interceptor;
    private UnifiedRequestInterceptorStep step;
    private Exception exception;

    public UnifiedRequestInterceptorChainNodeContext(int index, UnifiedRequestInterceptor interceptor,
                                                     UnifiedRequestInterceptorStep step, Exception exception) {
        this.index = index;
        this.interceptor = interceptor;
        this.step = step;
        this.exception = exception;
    }
}
